﻿<UserControl x:Class="CaptchaControl.Control.CaptchaControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    >
    <StackPanel x:Name="contentLayout">
        <ItemsControl x:Name="items"
                          MinHeight="50"
                          MinWidth="100">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal"
                                    HorizontalAlignment="Center">
                    </StackPanel>
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <StackPanel HorizontalAlignment="Center" 
                                    VerticalAlignment="Center">
                        <TextBlock Text="{Binding Letter, Mode=TwoWay}" 
                                   FontSize="{Binding FonSize, Mode=TwoWay}" 
                                   RenderTransform="{Binding TransformGroup, Mode=TwoWay}"
                                   FontWeight="{Binding FontWeight, Mode=TwoWay}"                                   
                                   Foreground="{Binding ForegroundGradient, Mode=TwoWay}"
                                   >
                        </TextBlock>
                        <Rectangle x:Name="RectangleSpace" 
                                   Width="{Binding SpaceBetweenLetters, Mode=TwoWay}" 
                                   Height="auto">
                        </Rectangle>
                    </StackPanel>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </StackPanel>

</UserControl>
